package com.shejimoshi.getAbstarctFactoy;

import com.shejimoshi.AbstaractFactoy.AbstractFactory;
import com.shejimoshi.Abstract_Color_Shape.ColorFactory;
import com.shejimoshi.Abstract_Color_Shape.ShapeFactory;

public class Pro {
    public static  AbstractFactory getAbstaractFactory(String sh){
        if(sh == null && sh=="")return null;
        if(sh.equalsIgnoreCase("shape")){
            return new ShapeFactory();
        }else if(sh.equalsIgnoreCase("color")){
            return new ColorFactory();
        }
        return  null;
    }
}
